package com.uuah.server.context.notification;

/**
 *
 * TODO comment ...
 *
 * <p>
 * update record:updator，update time，update content and version
 * </p>
 *
 * @author <a href="jonny_quan@hotmail.com">jonny</a>
 * @date 2009 2009-3-27 下午01:33:34
 * @version 1.0.0
 */
public class ExceptionNotification extends ServerNotification {
	private static final long serialVersionUID = -43091546451476239L;
	public static final int EXCEPTION_ACTION = EXCEPTION_EVENT_ACTION_START_RANGE + 1;

	static {
		registerAction("exception", EXCEPTION_ACTION);
	}

	private Throwable exception;

	public ExceptionNotification(Throwable exception) {
		super(exception, EXCEPTION_ACTION);
		this.exception = exception;
	}

	public Throwable getException() {
		return this.exception;
	}

	public String getType() {
		return TYPE_ERROR;
	}
}
